'use strict'
var fs=require('fs');

var path="04 node中的fs模块";

var readerStream=fs.createReadStream(path+'/input.txt');
var writerStream=fs.createWriteStream(path+'/output.txt');

//管道读写操作
//读取input.txt文件内容，并将内容写入到output.txt文件中

readerStream.pipe(writerStream);
console.log('程序执行完毕');